package com.ehome.poct.base.dao.device.repository;

import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.ehome.mybatisplus.support.AbstractCrudRepository;
import com.ehome.poct.base.api.dto.device.TestDevicePrinterDTO;
import com.ehome.poct.base.api.vo.device.TestDevicePrinterVO;
import com.ehome.poct.base.dao.device.entity.TestDevicePrinterDO;
import com.ehome.poct.base.dao.device.mapper.TestDevicePrinterMapper;
import com.ehome.poct.base.dao.mapping.TestDevicePrinterMapping;
import com.ehome.poct.base.device.repository.TestDevicePrinterRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 设备连接打印机RepositoryImpl
 *
 * @author muqiu
 * @Date 2022-06-23 09:42
 */
@Repository
public class TestDevicePrinterRepositoryImpl extends AbstractCrudRepository<TestDevicePrinterDO, TestDevicePrinterDTO> implements TestDevicePrinterRepository {
    @Autowired
    private TestDevicePrinterMapper testDevicePrinterMapper;
    @Override
    public List<TestDevicePrinterVO> listBySno(Long clinicId) {
        return testDevicePrinterMapper.listBySno(clinicId);
    }
}
